package com.optimize1;

/**
 * Time    : 2023/3/22 15:25
 * Author  : 王摇摆
 * FileName: com.optimize1.optimize1.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Main {
    public static void main(String[] args) {
        LandVehicle landVehicle = new LandVehicle("汽车");
        landVehicle.run();

        WaterVehicle waterVehicle = new WaterVehicle("轮船");
        waterVehicle.run();

        AirVehicle airVehicle = new AirVehicle("飞机");
        airVehicle.run();


    }
}
